import http from "../utils/ajax";

// 智能匹配相关API
export const getIntelligentMatchApi = (data) => http.get('/api/v1/matching/intelligent-match', data) // 获取智能匹配用户
export const postIntelligentMatchApi = (data) => http.post('/api/v1/matching/intelligent-match', data) // POST方式获取智能匹配用户
export const batchCalculateMatchApi = (userIds) => http.post('/api/v1/matching/batch-calculate', { user_ids: userIds }) // 批量计算匹配度
export const getRecommendationsApi = (data) => http.post('/api/v1/matching/recommendations', data) // 获取推荐用户
export const getMatchingStatisticsApi = () => http.get('/api/v1/matching/statistics') // 获取匹配统计数据
export const getMatchingAlgorithmsApi = () => http.get('/api/v1/matching/algorithms') // 获取可用匹配算法
export const getMatchingPreferencesApi = () => http.get('/api/v1/matching/preferences') // 获取匹配偏好设置
export const updateMatchingPreferencesApi = (data) => http.put('/api/v1/matching/preferences', data) // 更新匹配偏好设置
export const getScoreDetailsApi = (userId) => http.get(`/api/v1/matching/debug/score-details/${userId}`) // 获取匹配分数详情(调试) 